package jlocalchat;

import gui.cliente.JanelaChat;
import java.util.Scanner;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 * @author tiagosn
 */
public class Main3 {
    public static void main(String[] args) {
        try {
	    // Set System L&F
            UIManager.setLookAndFeel(
                UIManager.getSystemLookAndFeelClassName());
        }
        catch (UnsupportedLookAndFeelException e) {
           // handle exception
        }
        catch (ClassNotFoundException e) {
           // handle exception
        }
        catch (InstantiationException e) {
           // handle exception
        }
        catch (IllegalAccessException e) {
           // handle exception
        }

        Scanner ler = new Scanner(System.in);
        String login = ler.nextLine();
        JanelaChat j = new JanelaChat(login, "localhost", 12345);
        j.setVisible(true);
    }
}